package cloud.alibaba.study.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cloud.alibaba.study.dao.storage.StorageDao;
import cloud.alibaba.study.service.IStorageService;

@Service
public class StorageServiceImpl implements IStorageService {

    private static final Logger logger = LoggerFactory.getLogger(StorageServiceImpl.class);
    
	@Autowired
	private StorageDao storageDao;

	@Override
	public void decrease(Long productId, Integer count) {
		  storageDao.decrease(productId,count);
	}

}
